<template>
  <div class="errPage-container">
    <el-row>
      <el-col :span="24" style="text-align: center">
        <h1 class="text-jumbo text-ginormous">
          {{ busType === 'deal' ? $t('无项目权限!') : $t('无基金权限!') }}
        </h1>
        <!--        <h2>您没有项目访问权限！</h2>-->
        <h6>对不起，您没有{{ busType === 'deal' ? '项目' : '基金' }}访问权限，请联系{{ busType === 'deal' ? '项目' : '基金' }}负责人 <span v-if="personCharge">: </span>{{ personCharge ? personCharge : '' }}</h6>
        <!--        <ul class="list-unstyled">-->
        <!--          <li class="link-type">-->
        <!--            <router-link to="/">-->
        <!--              回首页-->
        <!--            </router-link>-->
        <!--          </li>-->
        <!--        </ul>-->
      </el-col>
      <!--      <el-col :span="12">-->
      <!--        &lt;!&ndash;        <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">&ndash;&gt;-->
      <!--      </el-col>-->
    </el-row>
  </div>
</template>

<script>
import errGif from '@/assets/401_images/401.gif'

export default {
  name: 'Page401',
  props: {
    personCharge: {
      type: String,
      default: ''
    },
    busType: {
      type: String,
      default: 'deal'
    }
  },
  data() {
    return {
      errGif: errGif + '?' + +new Date()
    }
  },
  methods: {
    back() {
      if (this.$route.query.noGoBack) {
        this.$router.push({ path: '/' })
      } else {
        this.$router.go(-1)
      }
    }
  }
}
</script>

<style lang="scss" scoped>
  .errPage-container {
    width: 800px;
    max-width: 100%;
    padding: 100px 0;
    margin: 0 auto;
    .pan-back-btn {
      background: #409eff;
      color: #fff;
      border: none!important;
    }
    .pan-gif {
      margin: 0 auto;
      display: block;
    }
    .pan-img {
      display: block;
      margin: 0 auto;
      width: 100%;
    }
    .text-jumbo {
      font-size: 40px;
      font-weight: 700;
      color: #484848;
    }
    .list-unstyled {
      font-size: 14px;
      li {
        padding-bottom: 5px;
      }
      a {
        color: #409eff;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
</style>
